package com.catt.orderdinner.repository;

import com.catt.orderdinner.dataobject.TbUser;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface TbUserRepository extends JpaRepository<TbUser, String> {
    TbUser findTbUserByUserName(String userName);

    TbUser findByUserId(String userId);

    TbUser findTbUserByUserNameAndUserPassword(String userName, String userPassWord);

    Page<TbUser> findAll(Pageable pageable);
}
